package com.first.community.enums;

public enum  commentTypeEnums {
    QUESTION(1),
    COMMENT(2);

    private  Integer type;

    public static boolean isEmpty(Integer type){
        for (commentTypeEnums value : commentTypeEnums.values()) {
            if(value.type==type){
                return true;
            }

        }
        return false;
    }

    public Integer getType() {
        return type;
    }

    commentTypeEnums(Integer type) {
        this.type = type;
    }
}
